<?php

namespace App\Api\Helpers\Push;


class SmsSendResult
{

    protected $response;

    /**
     * SmsSendResult constructor.
     * @param $response
     */
    public function __construct($response)
    {
        $this->response = $response;
    }

    public function isSuccess(){

        return !! $this->response->result->success;
    }

    public function isFailed(){

        return ! $this->isSuccess();

    }

    public function message(){

        return $this->response;
    }
}